<template>
  <div>
    <el-card>
      <CategorySelector></CategorySelector>
    </el-card>
    <el-card style="margin-top: 10px">
      <SaveList v-if="scene === 1" :visible.sync="scene" @setSpuInfo="currentInfo = $event"></SaveList>
      <SaveSpu v-if="scene === 2" :visible.sync="scene" :currentInfo="currentInfo"></SaveSpu>
      <SaveSKu v-if="scene === 3" :visible.sync="scene"></SaveSKu>
    </el-card>
  </div>
</template>

<script>
import SaveList from './components/SaveList.vue'
import SaveSpu from './components/SaveSpu.vue'
import SaveSKu from './components/SaveSku.vue'
export default {
  name: 'Spu',
  data() {
    return {
      scene: 1, //spu列表页
      currentInfo: {}
    }
  },
  components: {
    SaveList,
    SaveSpu,
    SaveSKu
  }
}
</script>

<style lang="" scoped></style>
